﻿using System;
using System.Collections.Generic;

using KingsSharp.Core.Data;


namespace CRM.Admin.Contracts.Model.Sys
{
    /// <summary>
    /// 角色
    /// </summary>
    public class Role:EntityBase<Guid>
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 是否锁定
        /// </summary>
        public bool IsLocked { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否管理员角色
        /// </summary>
        public bool IsAdmin { get; set; }

        /// <summary>
        /// 是否系统角色
        /// </summary>
        public bool IsSystem { get; set; }


        public virtual ICollection<Authorization> Auths { get; set; }
    }
}
